package com.atguigu.exercise;

/**
 * @author : leimingchao
 * @date Date : 2021年08月26日 23:50
 */
public class Circle extends GeometricObject {

    private double radius;

    public Circle() {

    }

    public Circle(double radius, String color, double weight) {
        super(color, weight);
        this.radius = radius;
    }


    public double getRadius() {
        return radius;
    }

    public void setRadius(double radius) {
        this.radius = radius;
    }

    @Override
    public double findArea() {
        return Math.PI * radius * radius;
    }
}
